package smn.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import smn.dao.manager.IShareManager;
import smn.dao.manager.IUserManager;
import smn.domain.MyUser;

/**

 * User: Abdulaziz
 * Date: 1/8/12
 * Time: 10:34 AM
 */
@RequestMapping("/share")
public class ShareController extends AbstractController{
    @Autowired
    IShareManager shareManager;

    @Autowired
    IUserManager userManager;


    @RequestMapping(value = "/new",method = RequestMethod.GET)
    public void createMyUser(){
        MyUser user = new MyUser();
        user.setFirstName("Aziz");
        user.setUsername("aziz");
        userManager.persist(user);

    }

}
